package my.mall.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import my.mall.db.entity.GoodsSku
import org.apache.ibatis.annotations.Param

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fengbo
 * @since 2024-04-19
 */
interface GoodsSkuMapper : BaseMapper<GoodsSku> {

    fun subStock(@Param("num") num: Int, @Param("id") skuId: Long?): Int

    fun addStock(@Param("num") num: Int, @Param("id") skuId: Long?): Int
}
